######################################################################
# Bit serial Codebook ModelSim do file
# Stephen West, James Carroll
# BYU ECEn 620, Fall 2008
######################################################################
quit -sim 
vcom CodeBook.vhd

vsim CodeBook

add wave *
force clk 0,1 10ns -r 20ns

force lsb_in 0
force config_ctrl_in 0 
force config_data 1000000000000000
run 40 ns

force config_ctrl_in 1
force config_data 1010000000000001
run 20 ns

force config_ctrl_in 0
force config_data 1010000000000010
run 20 ns
force config_data 1010000000000100
run 20 ns
force config_data 1010000000001000
run 20 ns
force config_data 1010000000010000
run 20 ns
force config_data 1010000000100000
run 20 ns
force config_data 1010000001000000
run 20 ns
force config_data 1010000010000000
run 20 ns
force config_data 1010000100000000
run 20 ns
force config_data 1100001000000000
run 20 ns
force config_data 1100010000000000
run 20 ns

#extra stuffs
force config_data 1100111111111111
run 20 ns 
force config_data 1101000000000001
run 20 ns
force config_data 1100111111111111
run 20 ns 
force config_data 1101000000000001
run 20 ns


force lsb_in 1
run 20 ns
force lsb_in 0
run 400 ns
